package ru.st.selenium.applogic2;

import org.junit.Assert;

import ru.st.selenium.applogic.MovieInformationHelper;
import ru.st.selenium.model.Film;


public class MovieInformationHelper2 extends DriverBasedHelper implements MovieInformationHelper {

	 public MovieInformationHelper2(ApplicationManager2 manager) {
		    super(manager.getWebDriver());
		  }
	
	  
	  @Override
	  public boolean enterMovieInformation(Film film){
		  
		  
		 Assert.assertTrue(pages.movieInformationPage
		  	.ensurePageLoaded()
		  	.fillTitle(film)
		  	.fillYear(film)
		  	.clickSubmit());
		  
		  pages.movieInformationPage.goToTheUploadPage();
		  
		  return true;
	  }
}
